using System;
using System.Collections.Generic;
using System.Text;
using MongoDB.Attributes;

namespace ConsoleApplication1.Data
{
    public class PlaceState
    {
        public int Id;
        public bool IsBusy;
    }
    public class Rect
    {
        public Rect() { }
        public Rect(double l, double t, double r, double b)
        {
            Left = l;
            Top = t;
            Right = r;
            Bottom = b;

        }
        public int Id;
        public double Left; 
        public double Top;
        public double Right;
        public double Bottom;

        [MongoIgnore]
        public double Width
        {
            get { return Right - Left; }
            set { Right = Left + value; }
        }

        [MongoIgnore]
        public double Height
        {
            get { return Bottom - Top; }
            set { Bottom = Height + value; }
        }
 
    }
}
